Adam Wolfe's profile

Game Design - Enemy AI behavior

AI move-to and player capture functionality:

     This is a small bit of functionality I programmed in Unreal Engine to have an AI enemy patrol a level and move to and capture the player character upon detection. The demo video below demonstrates this functionality in action. Below the video are the major pieces of code that create the functionality seen in the demo.
Demo Video:
Gamemode.h:
Gamemode.cpp - HandleNewState():
Gamemode.cpp - CallGameOver():
Gamemode.cpp - Tick(), GetPowerToWin(), GetCurrentState(), and SetCurrentState():
EnemyAI.cpp - Possess():
BTTask_MoveToPlayer.cpp:
Blackboard EnemyAI Behavior Tree:
Game Design - Enemy AI behavior
Published:

Game Design - Enemy AI behavior

Published: